﻿using System;
using System.Linq;
using System.Linq.Expressions;
using RailNet.Dao.Entity;

namespace RailNet.Dao.Repository
{
    public interface IDistanceRepository
    {
        IQueryable<Distance> All { get; }
        IQueryable<Distance> AllIncluding(params Expression<Func<Distance, object>>[] includeProperties);
        Distance Find(long id);
        Distance Find(Station s1, Station s2);
        void InsertOrUpdate(Distance distance);
        void Delete(long id);
        void Save();
    }
}